package com.zlsoft.sbsm.test;

class Woman{
    private Integer id;
    private String name;

    public Woman() {
        System.out.println("A woman birth.");
    }

    public Woman(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void play() {
        System.out.println(this.name+": 老娘高兴了才会陪你玩！");
    }
}

class Whore extends Woman{
    private Integer price;

    public Whore() {
        System.out.println("新茶上市！");
    }

    public Whore(Integer id, String name, Integer price) {
        super(id, name);
        this.price = price;


    }

    @Override
    public void play() {

        System.out.println(this.getName()+": 客人随便打赏"+price+" ,贱内就好好服侍你！");
        super.play();
    }
}

public class HiLy {

    public static void main(String[] args) {
        Whore w = new Whore();


        Whore whore = new Whore(38, "蔡英文", 999);
        whore.play();
    }
}
